package com.source.barcodeMachineGrantAndRecovery.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author IceBerg777
 * @since 2021-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "HouseMachineGrant对象", description = "")
@NoArgsConstructor
@AllArgsConstructor
public class HouseMachineGrant implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "押金")
    private Double deposit;

    @ApiModelProperty(value = "屠宰市场id")
    @TableField("houseId")
    private String houseId;

    @ApiModelProperty(value = "纸质协议编号")
    @TableField("agreementNumber")
    private String agreementNumber;

    @ApiModelProperty(value = "脚标机编号")
    @TableField("machineNumber")
    private String machineNumber;

    @ApiModelProperty(value = "创建时间")
    @TableField("createDate")
    private Date createDate;

    @ApiModelProperty(value = "发放时间")
    @TableField("grantDate")
    private Date grantDate;

    @ApiModelProperty(value = "发放人员id")
    @TableField("grantPersonId")
    private String grantPersonId;

    @ApiModelProperty(value = "接收人员id")
    @TableField("receivePersonId")
    private String receivePersonId;

    @ApiModelProperty(value = "价格")
    private Double price;

    @ApiModelProperty(value = "出厂日期")
    @TableField("productDate")
    private Date productDate;

    @ApiModelProperty(value = "状态（0发放，1未发放）")
    private Integer status;

    @TableField("isDelete")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty(value = "租金")
    private Integer rent;

    @ApiModelProperty(value = "有效期")
    @TableField("expiringDate")
    private Date expiringDate;

    @ApiModelProperty(value = "协议")
    private String protocol;

    @ApiModelProperty(value = "根据id追溯档口发放最新情况")
    @TableField("stallsGrantId")
    private String stallsGrantId;

    @ApiModelProperty(value = "0：是替补、1：非替补")
    @TableField("isAlternate")
    private Integer isAlternate;

    @ApiModelProperty(value = "（获取方式）0：租的、1：买的")
    @TableField("isHired")
    private Integer isHired;

    @ApiModelProperty(value = "根据id追溯档口回收最新情况")
    @TableField("stallsRevokeId")
    private String stallsRevokeId;

}
